package com.test.deencredit.analytics_deencredit.data_sdk_deencredit.beans_deencredit;

import android.os.Build;

import com.google.gson.Gson;
import com.test.deencredit.analytics_deencredit.data_sdk_deencredit.ASBuilder_deencredit;
import com.test.deencredit.config_deencredit.Constant_deencredit;
import com.test.deencredit.util_deencredit.AESCryptUtil_deencredit;
import com.test.deencredit.util_deencredit.UserInfoUtil_deencredit;

public class ASDecBn_deencredit {

    public String app;
    public String token;
    public String product;
    public String version;
    public String androidId;
    public String advertId;
    public String orderId;
    public String tz;
    public String phoneModel = Build.PRODUCT;
    public String sysVersion = Build.VERSION.RELEASE;
    public String deviceName = Build.DEVICE;
    public String brand = Build.BRAND;
    public String manufacturer = Build.MANUFACTURER;
    public String laguage;
    public String area;
    public String imei;
    public String mac;
    public String screenHeight;
    public String screenWidth;
    public String networkData;
    public String frontCameraPixels;
    public String rearCameraPixels;
    public String ram;
    public String rom;
    public String ip;
    public String ip2;
    public String networkEnvironment;
    public String cpu;
    public String path;

    public ASDecBn_deencredit(){
        this.app = Constant_deencredit.PRODUCT_deencredit;
        this.product = Constant_deencredit.PRODUCT_deencredit;
        this.token = UserInfoUtil_deencredit.getInstance_deencredit().getToken_deencredit();
        this.version = ASBuilder_deencredit.KEY_SDK_VERSION;
        this.androidId = ASBuilder_deencredit.KEY_ANDROID;
        this.orderId = ASBuilder_deencredit.KEY_ORDER_ID;
        this.advertId = ASBuilder_deencredit.KEY_ADVERT_ID;
        this.tz = ASBuilder_deencredit.KEY_TZ;
    }


    public String getDeviceName_deencredit() {
        return deviceName;
    }

    public void setDeviceName_deencredit(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getBrand_deencredit() {
        return brand;
    }

    public void setBrand_deencredit(String brand) {
        this.brand = brand;
    }

    public void setVersion_deencredit(String version) {
        this.version = version;
    }

    public String getPhoneModel_deencredit() {
        return phoneModel;
    }

    public void setPhoneModel_deencredit(String phoneModel) {
        this.phoneModel = phoneModel;
    }

    public String getSysVersion_deencredit() {
        return sysVersion;
    }

    public void setSysVersion_deencredit(String sysVersion) {
        this.sysVersion = sysVersion;
    }

    public String getCu_deencredit() {
        return cpu;
    }

    public void setCu_deencredit(String cpu) {
        this.cpu = cpu;
    }

    public String getApp_deencredit() {
        return app;
    }

    public void setApp_deencredit(String app) {
        this.app = app;
    }

    public String getProduct_deencredit() {
        return product;
    }

    public void setProduct_deencredit(String product) {
        this.product = product;
    }

    public String getIp2_deencredit() {
        return ip2;
    }

    public void setIp2_deencredit(String ip2) {
        this.ip2 = ip2;
    }

    public String toEncryptParams_deencredit(String path){
        this.path = path;
        String content = new Gson().toJson(this).trim();
        return AESCryptUtil_deencredit.encryptDefault_deencredit(content);
    }

    public void setScreenWidth_deencredit(String screenWidth) {
        this.screenWidth = screenWidth;
    }

    public String getNetworkData_deencredit() {
        return networkData;
    }

    public void setNetworkData_deencredit(String networkData) {
        this.networkData = networkData;
    }

    public String getFrontCameraPixels_deencredit() {
        return frontCameraPixels;
    }

    public String getManufacturer_deencredit() {
        return manufacturer;
    }

    public void setManufacturer_deencredit(String manufacturer) {
        this.manufacturer = manufacturer;
    }

    public String getLaguage_deencredit() {
        return laguage;
    }

    public void setLaguage_deencredit(String laguage) {
        this.laguage = laguage;
    }

    public String getArea_deencredit() {
        return area;
    }

    public void setArea_deencredit(String area) {
        this.area = area;
    }

    public String getRa_deencredit() {
        return ram;
    }

    public void setRa_deencredit(String ram) {
        this.ram = ram;
    }

    public String getRo_deencredit() {
        return rom;
    }

    public void setRo_deencredit(String rom) {
        this.rom = rom;
    }

    public String getIp_deencredit() {
        return ip;
    }

    public void setIp_deencredit(String ip) {
        this.ip = ip;
    }

    public String getNetworkEnvironment_deencredit() {
        return networkEnvironment;
    }

    public String getImei_deencredit() {
        return imei;
    }

    public void setImei_deencredit(String imei) {
        this.imei = imei;
    }

    public String getMac_deencredit() {
        return mac;
    }

    public void setMac_deencredit(String mac) {
        this.mac = mac;
    }

    public String getScreenHeight_deencredit() {
        return screenHeight;
    }

    public void setScreenHeight_deencredit(String screenHeight) {
        this.screenHeight = screenHeight;
    }

    public String getScreenWidth_deencredit() {
        return screenWidth;
    }

    public void setNetworkEnvironment_deencredit(String networkEnvironment) {
        this.networkEnvironment = networkEnvironment;
    }

    public String getToken_deencredit() {
        return token;
    }

    public void setToken_deencredit(String token) {
        this.token = token;
    }

    public String getVersion_deencredit() {
        return version;
    }

    public void setFrontCameraPixels_deencredit(String frontCameraPixels) {
        this.frontCameraPixels = frontCameraPixels;
    }

    public String getRearCameraPixels_deencredit() {
        return rearCameraPixels;
    }

    public void setRearCameraPixels_deencredit(String rearCameraPixels) {
        this.rearCameraPixels = rearCameraPixels;
    }

}
